package com.hzhc.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzhc.dto.BaseDto;
import com.hzhc.entity.CarInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author dongcy
 * @date 2024/4/8 10:29
 * @description CarInfoVo
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("car_info")
public class CarInfoVo extends BaseDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 车牌号
     */
    @Excel(name = "车牌号")
    private String carNo;

    /**
     * 车辆类型（0-协议车，1-非协议车）
     */
    @Excel(name = "是非协议车(0:协议车;1:非协议车)")
    private Integer inoutCar;

    /**
     * 车辆编号
     */
    @Excel(name = "车辆编号")
    private String carCode;

    /**
     * 货代id
     */
    private String hdId;
    /**
     * 货代名称
     */
    private String hdName;

    /**
     * 所属公司名称
     */
    @Excel(name = "所属车队")
    private String companyName;

    private String companyId;//公司id

    private String slaveComId;//所授权

    /**
     * 司机
     */
    private String driver;

    /**
     * 联系电话
     */
    private String telphone;

    /**
     * 创建者id
     */
    private Long userId;
    /**
     * 创建者
     */
    private String userName;

    /**
     * 是否显示(0,是显示，1是不显示)
     */
    private Boolean disable;

    private LocalDateTime createTime;

    private String cntrA;
    private String cntrB;
    private String efFlagA;
    private String efFlagB;
    private String jhBayA;
    private String jhBayB;
    private String cntrMainA;
    private String cntrMainB;
    private String cntrSizeA;
    private String cntrSizeB;
    private String voyageId;
    private Long frontTallyId;

    private String bayA;
    private String bayB;

    private String workCode;

    private Integer jy;
    /**
     * 装载重量(皮重)
     */

    private Double loadingWeight;

    private String searchValue;

    private String bigSmallCar;


    /**
     * 英文名称
     */
    private String nameEng;

    /**
     * 中文简称
     */
    private String nameSimple;
    /**
     * 联系人
     */
    private String contacts;

    /**
     * 联系电话
     */
    private String telephone;

    /**
     * 客户类型
     */
    private String comCode;
    /**
     * 备注
     */
    private String remark;
    /**
     *公司名
     */
    private String name;
    /**
     * 箱类型
     */
    @TableField(exist = false)
    private String cntrType;

    private Integer isBlack;//是否黑名单

    private Long updateUserId;

    private LocalDateTime updateTime;

    @Excel(name = "车头重量")
    private String vehicleWt;//皮重


    private List<CarInfo> carList;//车辆导入
    private String errorInfo; //导入错误信息

    /**
     * 绑定拖挂id
     */
    private Long towId;
    private String towNo;
    private boolean powerFlag;
    private String towWeight;

    /**
     * 毛重
     */
    private String carWeight;

    private List<String> carNoList;//车牌号集合
}
